package main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.eudi.dubbo.service.IDemoService;

public class ClientMain {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationConsumer.xml" });
		context.start();
		IDemoService service = (IDemoService) context.getBean("demoService");
		System.out.println(service.sayHello("world"));
		System.out.println(service.sayHello("zqteng"));
		System.out.println(service.sayHello("ljguo"));
		try {
			Thread.sleep(60 * 60 * 1000);
		} catch (InterruptedException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
		context.close();
	}
}
